package com.leyou.personnel.data.dto;

import com.baomidou.mybatisplus.annotation.*;
import com.leyou.personnel.data.entity.AdministratorsRole;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author xhh
 * @since 2022-05-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="AdministratorsManagerDto对象", description="")
public class AdministratorsManagerDto implements Serializable {

    private static final long serialVersionUID = 1L;


    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "管理员账号")
    private String managerAccountNumber;

    @ApiModelProperty(value = "管理员名称")
    private String managerName;

    @ApiModelProperty(value = "密码")
    private String managerPassword;

    @ApiModelProperty(value = "性别 l-男 o-女")
    private String managerGender;

    //@ApiModelProperty(value = "角色编码")
    //private String roleNumber;

    @ApiModelProperty(value = "角色编码对象")
    @TableField(exist = false)
    private AdministratorsRole administratorsRole;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date insertTime;

    @ApiModelProperty(value = "修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date modifiedTime;

    @ApiModelProperty(value = "删除标记")
    @TableLogic
    private Integer deleted;


}
